LC_EVENT_DRAWIMAGE Home

LiteCAD generates LC_EVENT_DRAWIMAGE event when required to display an image object created via the lcBlockAddImagePlace function.

The following properties are used for this event type:

Property Description
LC_PROP_EVENT_TYPE Value LC_EVENT_DRAWIMAGE
LC_PROP_EVENT_WND Handle to a graphics window
LC_PROP_EVENT_DRW Handle to a drawing
LC_PROP_EVENT_BLOCK Handle to a block which contains the entity
LC_PROP_EVENT_HDC Device context of output window (WinAPI HDC type)
LC_PROP_EVENT_ENTITY Handle to raster image entity.
LC_PROP_EVENT_FLOAT1 Image Width on a drawing coordinate space
LC_PROP_EVENT_FLOAT2 Image Height on a drawing coordinate space
LC_PROP_EVENT_INT1 X coordinate of the image left side (pixels, window ccoordinate system)
LC_PROP_EVENT_INT2 Y coordinate of the image bottom side (pixels, window ccoordinate system)
LC_PROP_EVENT_INT3 Width of LiteCAD graphics window, pixels
LC_PROP_EVENT_INT4 Height of LiteCAD graphics window, pixels
LC_PROP_EVENT_INT6 Image identifier. You set the identifier when adding an image into a drawing (see lcBlockAddImagePlace). If multiple images have been added into the drawing, use the identifier to nominate which image is to be rendered during the event.

See also

  Code sample